-- GENERATED SPELL FOR [Wyrmcult Blackwhelp] --


function spell0_21387(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(19816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21387', 3000, 1)
end

function Sorts_21387(pUnit, Event)
local choix_sorts_21387 = math.random(0, 0)
if choix_sorts_21387 == 0 then
pUnit:RegisterEvent('spell0_21387', 1, 1)
end
end

function mob21387_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21387', math.random(1500, 3000), 1)
end

function mob21387_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21387_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21387_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21387, 1, 'mob21387_Action')
RegisterUnitEvent(21387, 2, 'mob21387_Leave')
RegisterUnitEvent(21387, 3, 'mob21387_Kill')
RegisterUnitEvent(21387, 4, 'mob21387_Die')
